
import { AppState ,User} from "./types";

/**定义state */
const state:AppState={
	user:{
		nick_name:"",
		avatar_url:"",
		id:"",
	}
}

/**定义mutations */
const mutations={
	setUserInfo(state:AppState,params:User){
		console.log("setUserInfo",params);
		state.user=params
	}
}

//项目公用基础状态
export default {
	namespaced:true,
	state:state,
	mutations:mutations
}
